package com.sixbro.shiro.common.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 * MyBatisPlusConfig
 * </p>
 *
 * @Author: Mr.Lu
 * @Since: 2020/6/19 13:39
 */
@Configuration
public class MyBatisPlusConfig {

    /**
     * 配置mybatis-plus 分页查件
     *
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
